home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / util / cli / DevEx10a.lha / DevEx10a.readme < prev    next >
Encoding:
Text File  |  1997-12-21  |  1.9 KB  |  59 lines

  1. Short:    Checks for devices (esp. HDs on boot)
  2. Author:   Christian Wasner
  3. Uploader: christianw@on-line.de
  4. Type:     util/cli
  5.  
  6. This program checks if a unit of a device is present.  It is
  7. particularly useful for checking if a HD is accessible when booting,
  8. although it works with any device (except those like console.device
  9. which expects additional data).
  10.  
  11. Usage:  DevEx DEVICE/A,UNIT/O
  12.  
  13. DEVICE is the exec device name (e.g.  scsi.device), unit is the unit
  14. of the device (which defaults to 0).  For SCSI host adapters the unit
  15. number normally is identical to the SCSI unit, for IDE controllers 0
  16. normally means the bus master and 1 the slave.
  17.  
  18. I wrote this program some time ago because my CyberSCSI host adapter
  19. doesn't recognize my Syquest drive (being SCSI unit 1) right after
  20. switching on when a cartridge is already inserted, i.e.  I cannot
  21. access it during that session (strangely it works with my CD-ROM
  22. drive).  So I inserted the following lines at the top of
  23. s:startup-sequence:
  24.  
  25. makedir RAM:T
  26. assign T: RAM:T  ;needed for "set ch `requestchoice ..."
  27.  
  28. DevEx >NIL: cybscsi.device 1
  29. if WARN
  30.     set ch `requestchoice "Just switched on ?" "Cannot find cybscsi.device unit 1" "Reboot" "Continue"`
  31. else
  32.     set ch 0
  33. endif
  34.  
  35. if not $ch eq 0
  36.     HardReset
  37. endif
  38.  
  39. Obviously this technique won't function if your boot device makes that
  40. kind of trouble.  In that case I advise entering the boot menu by
  41. pressing both mouse buttons, waiting until the HD has spinned up and
  42. clicking on the "boot" gadget.
  43.  
  44. This program and its source code is public domain, i.e.  do with it
  45. and its source code what you want.  As I don't expect money for it, I
  46. don't guarantee for anything.
  47.  
  48. Contents:
  49.  
  50. SCOPTIONS          186 bytes    Options for SAS-C V6.58
  51. DevEx              692 bytes    Executable, copy into C:
  52. DevEx.c           1589 bytes    Source code
  53. DevEx10a.readme   1966 bytes    This file
  54.  
  55. History:
  56.     V1.0   21-Dec-97   Initial release
  57.  
  58.     V1.0a  21-Dec-97   Email address typo, sorry
  59.